import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { CacheService } from 'src/cache/cache.service';
import { Calendar } from './calendar.entity';
import { Repository } from 'typeorm';

@Injectable()
export class CalendarService {
    constructor(
        @InjectRepository(Calendar)
        private readonly calendar: Repository<Calendar>,
        private cacheService: CacheService
    ) {
        this.initial();
    }

    private async initial() {
        const data = await this.calendar.find({
            relations: ["user"]
        });

    }


}
